package com.arron.DesignMode.builder;

/**
 * @Classname com.arron.DesignMode.builder.CommonHouseBuilder
 * @Date 2020/11/6 16:42
 * @Created by 刘
 */
public class CommonHouseBuilder implements HouseBuilder{

    private House house;

    public CommonHouseBuilder(House house) {
        this.house = house;
    }

    @Override
    public void buildBasic() {
        house.setBasic("5m地基");
        System.out.println("建造了5m的地基");
    }

    @Override
    public void buildWalls() {
        house.setWalls("10m的墙");
        System.out.println("建造了10m的墙");
    }

    @Override
    public void buildRoof() {
        house.setRoof("普通屋顶");
        System.out.println("建造了普通屋顶");
    }

    @Override
    public House getHouse() {
        return house;
    }
}
